#include "../func.h"

void sig(int signum)
{
    printf("I am signal %d\n", signum);
}

int main()
{
    if (signal(SIGINT, sig) == SIG_ERR)
    {
        perror("signal");
        return -1;
    }
    while(1);
    return 0;
}
